#include <stdio.h>
int sum(int num1,int num2)
{
	int sum=num1+num2;
}
int subtract(int num1,int num2)
{
	int subtract=num1-num2;
}
int multi(int num1,int num2)
{
	int multi=num1*num2;
}
int divide(int num1,int num2)
{
	int divide=num1/num2;
}
int main()
{
	int(*arr[4])(int,int)={sum,subtract,multi,divide};
	int num1;
	int num2;
	int choose;
	scanf("%d %d %d",&num1,&num2,&choose);
	int outcome=arr[choose](num1,num2);
	printf("%d",outcome);
	return 0;
}
